#ifndef _CLOADMAP_H_
#define _CLOADMAP_H_
#include "CQuadtree.h"
#include "GameObj.h"
#include <fstream>

class CLoadMap
{
	string _fileGameObject , _fileQuadtree;
	//vector<GameObject*> listGameObject;
public:
	map<int,QNode*> mapQuadtree;
	map<int, GameObject*> mapGameObject;
	int mapWidth;
	CLoadMap(string fileGameObject, string fileQuadtree);
	CLoadMap(string fileGameObject, string fileQuadtree, bool isFromSaved);
	void LoadGameObject();
	void LoadGameObjectFromSaveFile();
	void LoadToQuadtree(CQuadtree *quadtree);
	string TreeFilePath(){ return _fileQuadtree;};
};

#endif

